package com.atguigu.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author : wenchao.long
 * @date : Created in 2020/12/02 8:39 周三
 * @description :
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "atguigu")
@Accessors(chain = true)
public class Article {
    @Id
    private Integer id;
    private String author;
    private String title;
    private String content;
}
